﻿<sap:ActivityDesigner x:Class="Vision.Core.ActivityComponents.IO.File.FileInfoDesigner"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="clr-namespace:System;assembly=mscorlib"
    xmlns:sa="clr-namespace:System.Activities;assembly=System.Activities"
    xmlns:sap="clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation"
    xmlns:sapc="clr-namespace:System.Activities.Presentation.Converters;assembly=System.Activities.Presentation"
    xmlns:sapv="clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation"
    Collapsible="True" ExpandState="True">
    <sap:ActivityDesigner.Resources>
        <ResourceDictionary>
            <sapc:ArgumentToExpressionConverter x:Key="argumentToExpressionConverter" />

            <DataTemplate x:Key="ExpandedActivityViewTemplate">
                <StackPanel>
                        <!-- Inputs Header -->
                        <TextBlock Text="Input(s):" FontWeight="Bold" Foreground="Navy" Margin="0,0,0,3" />

                        <Grid Margin="0,5,0,0">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="100" />
                                <ColumnDefinition />
                            </Grid.ColumnDefinitions>

                            <!-- ModelItem.FilePath -->
                            <TextBlock Grid.Row="1" Grid.Column="0" Text="File path:" VerticalAlignment="Top" />
                            <sapv:ExpressionTextBox Grid.Row="1" Grid.Column="1"
                                MaxLines="1" Margin="7,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                Expression="{Binding Path=ModelItem.FilePath, Mode=TwoWay, Converter={StaticResource argumentToExpressionConverter}, ConverterParameter=In}"
                                ExpressionType="{Binding Path=ModelItem.FilePath.ArgumentType}"
                                OwnerActivity="{Binding Path=ModelItem, Mode=OneWay}" />
                        </Grid>

                    <!-- Outputs Header -->
                    <Expander IsExpanded="True" Style="{DynamicResource ExpanderStyle}">
                    	<Expander.Resources>
                    		<Style x:Key="ExpanderRightHeaderStyle" TargetType="{x:Type ToggleButton}">
                    			<Setter Property="Template">
                    				<Setter.Value>
                    					<ControlTemplate TargetType="{x:Type ToggleButton}">
                    						<Border Padding="{TemplateBinding Padding}">
                    							<Grid Background="Transparent" SnapsToDevicePixels="False">
                    								<Grid.RowDefinitions>
                    									<RowDefinition Height="19"/>
                    									<RowDefinition Height="*"/>
                    								</Grid.RowDefinitions>
                    								<Grid>
                    									<Grid.LayoutTransform>
                    										<TransformGroup>
                    											<TransformGroup.Children>
                    												<TransformCollection>
                    													<RotateTransform Angle="-90"/>
                    												</TransformCollection>
                    											</TransformGroup.Children>
                    										</TransformGroup>
                    									</Grid.LayoutTransform>
                    									<Ellipse x:Name="circle" HorizontalAlignment="Center" Height="19" Stroke="DarkGray" VerticalAlignment="Center" Width="19"/>
                    									<Path x:Name="arrow" Data="M 1,1.5 L 4.5,5 L 8,1.5" HorizontalAlignment="Center" SnapsToDevicePixels="false" Stroke="#666" StrokeThickness="2" VerticalAlignment="Center"/>
                    								</Grid>
                    								<ContentPresenter HorizontalAlignment="Center" Margin="0,4,0,0" Grid.Row="1" RecognizesAccessKey="True" SnapsToDevicePixels="True" VerticalAlignment="Top"/>
                    							</Grid>
                    						</Border>
                    						<ControlTemplate.Triggers>
                    							<Trigger Property="IsChecked" Value="true">
                    								<Setter Property="Data" TargetName="arrow" Value="M 1,4.5  L 4.5,1  L 8,4.5"/>
                    							</Trigger>
                    							<Trigger Property="IsMouseOver" Value="true">
                    								<Setter Property="Stroke" TargetName="circle" Value="#FF3C7FB1"/>
                    								<Setter Property="Stroke" TargetName="arrow" Value="#222"/>
                    							</Trigger>
                    							<Trigger Property="IsPressed" Value="true">
                    								<Setter Property="Stroke" TargetName="circle" Value="#FF526C7B"/>
                    								<Setter Property="StrokeThickness" TargetName="circle" Value="1.5"/>
                    								<Setter Property="Stroke" TargetName="arrow" Value="#FF003366"/>
                    							</Trigger>
                    						</ControlTemplate.Triggers>
                    					</ControlTemplate>
                    				</Setter.Value>
                    			</Setter>
                    		</Style>
                    		<Style x:Key="ExpanderUpHeaderStyle" TargetType="{x:Type ToggleButton}">
                    			<Setter Property="Template">
                    				<Setter.Value>
                    					<ControlTemplate TargetType="{x:Type ToggleButton}">
                    						<Border Padding="{TemplateBinding Padding}">
                    							<Grid Background="Transparent" SnapsToDevicePixels="False">
                    								<Grid.ColumnDefinitions>
                    									<ColumnDefinition Width="19"/>
                    									<ColumnDefinition Width="*"/>
                    								</Grid.ColumnDefinitions>
                    								<Grid>
                    									<Grid.LayoutTransform>
                    										<TransformGroup>
                    											<TransformGroup.Children>
                    												<TransformCollection>
                    													<RotateTransform Angle="180"/>
                    												</TransformCollection>
                    											</TransformGroup.Children>
                    										</TransformGroup>
                    									</Grid.LayoutTransform>
                    									<Ellipse x:Name="circle" HorizontalAlignment="Center" Height="19" Stroke="DarkGray" VerticalAlignment="Center" Width="19"/>
                    									<Path x:Name="arrow" Data="M 1,1.5 L 4.5,5 L 8,1.5" HorizontalAlignment="Center" SnapsToDevicePixels="false" Stroke="#666" StrokeThickness="2" VerticalAlignment="Center"/>
                    								</Grid>
                    								<ContentPresenter Grid.Column="1" HorizontalAlignment="Left" Margin="4,0,0,0" RecognizesAccessKey="True" SnapsToDevicePixels="True" VerticalAlignment="Center"/>
                    							</Grid>
                    						</Border>
                    						<ControlTemplate.Triggers>
                    							<Trigger Property="IsChecked" Value="true">
                    								<Setter Property="Data" TargetName="arrow" Value="M 1,4.5  L 4.5,1  L 8,4.5"/>
                    							</Trigger>
                    							<Trigger Property="IsMouseOver" Value="true">
                    								<Setter Property="Stroke" TargetName="circle" Value="#FF3C7FB1"/>
                    								<Setter Property="Stroke" TargetName="arrow" Value="#222"/>
                    							</Trigger>
                    							<Trigger Property="IsPressed" Value="true">
                    								<Setter Property="Stroke" TargetName="circle" Value="#FF526C7B"/>
                    								<Setter Property="StrokeThickness" TargetName="circle" Value="1.5"/>
                    								<Setter Property="Stroke" TargetName="arrow" Value="#FF003366"/>
                    							</Trigger>
                    						</ControlTemplate.Triggers>
                    					</ControlTemplate>
                    				</Setter.Value>
                    			</Setter>
                    		</Style>
                    		<Style x:Key="ExpanderLeftHeaderStyle" TargetType="{x:Type ToggleButton}">
                    			<Setter Property="Template">
                    				<Setter.Value>
                    					<ControlTemplate TargetType="{x:Type ToggleButton}">
                    						<Border Padding="{TemplateBinding Padding}">
                    							<Grid Background="Transparent" SnapsToDevicePixels="False">
                    								<Grid.RowDefinitions>
                    									<RowDefinition Height="19"/>
                    									<RowDefinition Height="*"/>
                    								</Grid.RowDefinitions>
                    								<Grid>
                    									<Grid.LayoutTransform>
                    										<TransformGroup>
                    											<TransformGroup.Children>
                    												<TransformCollection>
                    													<RotateTransform Angle="90"/>
                    												</TransformCollection>
                    											</TransformGroup.Children>
                    										</TransformGroup>
                    									</Grid.LayoutTransform>
                    									<Ellipse x:Name="circle" HorizontalAlignment="Center" Height="19" Stroke="DarkGray" VerticalAlignment="Center" Width="19"/>
                    									<Path x:Name="arrow" Data="M 1,1.5 L 4.5,5 L 8,1.5" HorizontalAlignment="Center" SnapsToDevicePixels="false" Stroke="#666" StrokeThickness="2" VerticalAlignment="Center"/>
                    								</Grid>
                    								<ContentPresenter HorizontalAlignment="Center" Margin="0,4,0,0" Grid.Row="1" RecognizesAccessKey="True" SnapsToDevicePixels="True" VerticalAlignment="Top"/>
                    							</Grid>
                    						</Border>
                    						<ControlTemplate.Triggers>
                    							<Trigger Property="IsChecked" Value="true">
                    								<Setter Property="Data" TargetName="arrow" Value="M 1,4.5  L 4.5,1  L 8,4.5"/>
                    							</Trigger>
                    							<Trigger Property="IsMouseOver" Value="true">
                    								<Setter Property="Stroke" TargetName="circle" Value="#FF3C7FB1"/>
                    								<Setter Property="Stroke" TargetName="arrow" Value="#222"/>
                    							</Trigger>
                    							<Trigger Property="IsPressed" Value="true">
                    								<Setter Property="Stroke" TargetName="circle" Value="#FF526C7B"/>
                    								<Setter Property="StrokeThickness" TargetName="circle" Value="1.5"/>
                    								<Setter Property="Stroke" TargetName="arrow" Value="#FF003366"/>
                    							</Trigger>
                    						</ControlTemplate.Triggers>
                    					</ControlTemplate>
                    				</Setter.Value>
                    			</Setter>
                    		</Style>
                    		<Style x:Key="ExpanderHeaderFocusVisual">
                    			<Setter Property="Control.Template">
                    				<Setter.Value>
                    					<ControlTemplate>
                    						<Border>
                    							<Rectangle Margin="0" SnapsToDevicePixels="true" Stroke="Black" StrokeThickness="1" StrokeDashArray="1 2"/>
                    						</Border>
                    					</ControlTemplate>
                    				</Setter.Value>
                    			</Setter>
                    		</Style>
                    		<Style x:Key="ExpanderDownHeaderStyle" TargetType="{x:Type ToggleButton}">
                    			<Setter Property="Template">
                    				<Setter.Value>
                    					<ControlTemplate TargetType="{x:Type ToggleButton}">
                    						<Border Padding="{TemplateBinding Padding}">
                    							<Grid Background="Transparent" SnapsToDevicePixels="False">
                    								<Grid.ColumnDefinitions>
                    									<ColumnDefinition Width="*"/>
														<ColumnDefinition Width="19"/>
                    								</Grid.ColumnDefinitions>
                    								<Ellipse x:Name="circle" HorizontalAlignment="Center" Height="19" Stroke="DarkGray" VerticalAlignment="Center" Width="19" Grid.Column="1"/>
                    								<Path x:Name="arrow" Data="M 1,1.5 L 4.5,5 L 8,1.5" HorizontalAlignment="Center" SnapsToDevicePixels="false" Stroke="#666" StrokeThickness="2" VerticalAlignment="Center" Grid.Column="1"/>
                    								<ContentPresenter Grid.Column="0" HorizontalAlignment="Left" Margin="0,0,4,0" RecognizesAccessKey="True" SnapsToDevicePixels="True" VerticalAlignment="Center"/>
                    							</Grid>
                    						</Border>
                    						<ControlTemplate.Triggers>
                    							<Trigger Property="IsChecked" Value="true">
                    								<Setter Property="Data" TargetName="arrow" Value="M 1,4.5  L 4.5,1  L 8,4.5"/>
                    							</Trigger>
                    							<Trigger Property="IsMouseOver" Value="true">
                    								<Setter Property="Stroke" TargetName="circle" Value="#FF3C7FB1"/>
                    								<Setter Property="Stroke" TargetName="arrow" Value="#222"/>
                    							</Trigger>
                    							<Trigger Property="IsPressed" Value="true">
                    								<Setter Property="Stroke" TargetName="circle" Value="#FF526C7B"/>
                    								<Setter Property="StrokeThickness" TargetName="circle" Value="1.5"/>
                    								<Setter Property="Stroke" TargetName="arrow" Value="#FF003366"/>
                    							</Trigger>
                    						</ControlTemplate.Triggers>
                    					</ControlTemplate>
                    				</Setter.Value>
                    			</Setter>
                    		</Style>
                    		<Style x:Key="ExpanderStyle" TargetType="{x:Type Expander}">
                    			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
                    			<Setter Property="Background" Value="Transparent"/>
                    			<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
                    			<Setter Property="VerticalContentAlignment" Value="Stretch"/>
                    			<Setter Property="BorderBrush" Value="Transparent"/>
                    			<Setter Property="BorderThickness" Value="1"/>
                    			<Setter Property="Template">
                    				<Setter.Value>
                    					<ControlTemplate TargetType="{x:Type Expander}">
                    						<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="3" SnapsToDevicePixels="true">
                    							<DockPanel>
                    								<ToggleButton x:Name="HeaderSite" ContentTemplate="{TemplateBinding HeaderTemplate}" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}" Content="{TemplateBinding Header}" DockPanel.Dock="Top" Foreground="{TemplateBinding Foreground}" FontWeight="{TemplateBinding FontWeight}" FocusVisualStyle="{StaticResource ExpanderHeaderFocusVisual}" FontStyle="{TemplateBinding FontStyle}" FontStretch="{TemplateBinding FontStretch}" FontSize="{TemplateBinding FontSize}" FontFamily="{TemplateBinding FontFamily}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Margin="0" MinWidth="0" MinHeight="0" Padding="{TemplateBinding Padding}" Style="{StaticResource ExpanderDownHeaderStyle}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    								<ContentPresenter x:Name="ExpandSite" DockPanel.Dock="Bottom" Focusable="false" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" Visibility="Collapsed" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    							</DockPanel>
                    						</Border>
                    						<ControlTemplate.Triggers>
                    							<Trigger Property="IsExpanded" Value="true">
                    								<Setter Property="Visibility" TargetName="ExpandSite" Value="Visible"/>
                    							</Trigger>
                    							<Trigger Property="ExpandDirection" Value="Right">
                    								<Setter Property="DockPanel.Dock" TargetName="ExpandSite" Value="Right"/>
                    								<Setter Property="DockPanel.Dock" TargetName="HeaderSite" Value="Left"/>
                    								<Setter Property="Style" TargetName="HeaderSite" Value="{StaticResource ExpanderRightHeaderStyle}"/>
                    							</Trigger>
                    							<Trigger Property="ExpandDirection" Value="Up">
                    								<Setter Property="DockPanel.Dock" TargetName="ExpandSite" Value="Top"/>
                    								<Setter Property="DockPanel.Dock" TargetName="HeaderSite" Value="Bottom"/>
                    								<Setter Property="Style" TargetName="HeaderSite" Value="{StaticResource ExpanderUpHeaderStyle}"/>
                    							</Trigger>
                    							<Trigger Property="ExpandDirection" Value="Left">
                    								<Setter Property="DockPanel.Dock" TargetName="ExpandSite" Value="Left"/>
                    								<Setter Property="DockPanel.Dock" TargetName="HeaderSite" Value="Right"/>
                    								<Setter Property="Style" TargetName="HeaderSite" Value="{StaticResource ExpanderLeftHeaderStyle}"/>
                    							</Trigger>
                    							<Trigger Property="IsEnabled" Value="false">
                    								<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                    							</Trigger>
                    						</ControlTemplate.Triggers>
                    					</ControlTemplate>
                    				</Setter.Value>
                    			</Setter>
                    		</Style>
                    	</Expander.Resources>
                        <Expander.HeaderTemplate>
                            <DataTemplate>
                                <TextBlock Text="Outputs(s):" FontWeight="Bold" Foreground="Navy" Margin="0,5,0,3" />
                            </DataTemplate>
                        </Expander.HeaderTemplate>

                        <StackPanel>
                            <Grid Margin="0,5,0,0">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="100" />
                                    <ColumnDefinition />
                                </Grid.ColumnDefinitions>

                                <!-- ModelItem.Name -->
                                <TextBlock Grid.Row="1" Grid.Column="0" Text="Name:" VerticalAlignment="Top" />
                                <sapv:ExpressionTextBox Grid.Row="1" Grid.Column="1" 
                                MaxLines="1" Margin="7,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                Expression="{Binding Path=ModelItem.Name, Mode=TwoWay, Converter={StaticResource argumentToExpressionConverter}, ConverterParameter=Out}"
                                ExpressionType="{Binding Path=ModelItem.Name.ArgumentType}"
                                OwnerActivity="{Binding Path=ModelItem, Mode=OneWay}"
                                UseLocationExpression="True" />
                            </Grid>

                            <Grid Margin="0,5,0,0">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="100" />
                                    <ColumnDefinition />
                                </Grid.ColumnDefinitions>

                                <!-- ModelItem.Extension -->
                                <TextBlock Grid.Row="1" Grid.Column="0" Text="Extension:" VerticalAlignment="Top" />
                                <sapv:ExpressionTextBox Grid.Row="1" Grid.Column="1" 
                                MaxLines="1" Margin="7,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                Expression="{Binding Path=ModelItem.Extension, Mode=TwoWay, Converter={StaticResource argumentToExpressionConverter}, ConverterParameter=Out}"
                                ExpressionType="{Binding Path=ModelItem.Extension.ArgumentType}"
                                OwnerActivity="{Binding Path=ModelItem, Mode=OneWay}"
                                UseLocationExpression="True" />
                            </Grid>

                            <Grid Margin="0,5,0,0">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="100" />
                                    <ColumnDefinition />
                                </Grid.ColumnDefinitions>

                                <!-- ModelItem.DirectoryName -->
                                <TextBlock Grid.Row="1" Grid.Column="0" Text="Directory Name:" VerticalAlignment="Top" />
                                <sapv:ExpressionTextBox Grid.Row="1" Grid.Column="1" 
                                MaxLines="1" Margin="7,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                Expression="{Binding Path=ModelItem.DirectoryName, Mode=TwoWay, Converter={StaticResource argumentToExpressionConverter}, ConverterParameter=Out}"
                                ExpressionType="{Binding Path=ModelItem.DirectoryName.ArgumentType}"
                                OwnerActivity="{Binding Path=ModelItem, Mode=OneWay}"
                                UseLocationExpression="True" />
                            </Grid>

                            <Grid Margin="0,5,0,0">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="100" />
                                    <ColumnDefinition />
                                </Grid.ColumnDefinitions>

                                <!-- ModelItem.CreationTime -->
                                <TextBlock Grid.Row="1" Grid.Column="0" Text="Creation Time:" VerticalAlignment="Top" />
                                <sapv:ExpressionTextBox Grid.Row="1" Grid.Column="1" 
                                MaxLines="1" Margin="7,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                Expression="{Binding Path=ModelItem.CreationTime, Mode=TwoWay, Converter={StaticResource argumentToExpressionConverter}, ConverterParameter=Out}"
                                ExpressionType="{Binding Path=ModelItem.CreationTime.ArgumentType}"
                                OwnerActivity="{Binding Path=ModelItem, Mode=OneWay}"
                                UseLocationExpression="True" />
                            </Grid>

                            <Grid Margin="0,5,0,0">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="100" />
                                    <ColumnDefinition />
                                </Grid.ColumnDefinitions>

                                <!-- ModelItem.LastAccessTime -->
                                <TextBlock Grid.Row="1" Grid.Column="0" Text="Last Access Time:" VerticalAlignment="Top" />
                                <sapv:ExpressionTextBox Grid.Row="1" Grid.Column="1" 
                                MaxLines="1" Margin="7,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                Expression="{Binding Path=ModelItem.LastAccessTime, Mode=TwoWay, Converter={StaticResource argumentToExpressionConverter}, ConverterParameter=Out}"
                                ExpressionType="{Binding Path=ModelItem.LastAccessTime.ArgumentType}"
                                OwnerActivity="{Binding Path=ModelItem, Mode=OneWay}"
                                UseLocationExpression="True" />
                            </Grid>

                            <Grid Margin="0,5,0,0">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="100" />
                                    <ColumnDefinition />
                                </Grid.ColumnDefinitions>

                                <!-- ModelItem.LastWriteTime -->
                                <TextBlock Grid.Row="1" Grid.Column="0" Text="Last Write Time:" VerticalAlignment="Top" />
                                <sapv:ExpressionTextBox Grid.Row="1" Grid.Column="1" 
                                MaxLines="1" Margin="7,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                Expression="{Binding Path=ModelItem.LastWriteTime, Mode=TwoWay, Converter={StaticResource argumentToExpressionConverter}, ConverterParameter=Out}"
                                ExpressionType="{Binding Path=ModelItem.LastWriteTime.ArgumentType}"
                                OwnerActivity="{Binding Path=ModelItem, Mode=OneWay}"
                                UseLocationExpression="True" />
                            </Grid>
                        </StackPanel>
                    </Expander>

                        <Border BorderThickness="0,0,0,3" Margin="0,5">
                            <Border.BorderBrush>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="DarkGray" Offset="0" />
                                    <GradientStop Color="White" Offset="1" />
                                </LinearGradientBrush>
                            </Border.BorderBrush>
                        </Border>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="70" />
                                <ColumnDefinition />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition />
                                <RowDefinition />
                            </Grid.RowDefinitions>
                            <TextBlock Grid.Row="0" Text="Argument:" VerticalAlignment="Top" Foreground="Gray" />
                            <TextBox Grid.Row="0" Grid.Column="1" Text="{Binding Path=ModelItem.Body.Argument.Name, Mode=TwoWay}" Margin="7,0,0,0" Foreground="Gray" />
                        </Grid>
                        <!-- Body -->
                        <sap:WorkflowItemPresenter AutomationProperties.AutomationId="Activity" IsDefaultContainer="True" HintText="Drop activity here" Item="{Binding Path=ModelItem.Body.Handler, Mode=TwoWay}" AllowedItemType="{x:Type sa:Activity}" MinWidth="100" MinHeight="100" Margin="0,7,0,0"/>
                    </StackPanel>
            </DataTemplate>
            <DataTemplate x:Uid="DataTemplate_2" x:Key="CollapsedActivityViewTemplate">
                <Label x:Uid="TextBlock_6" Padding="0,0,0,0" FontStyle="Italic" Foreground="{x:Static SystemColors.GrayTextBrush}" HorizontalAlignment="Center" VerticalAlignment="Center">Double-click to view</Label>
            </DataTemplate>
            <Style x:Uid="Style_1" x:Key="FileOpenStyle" TargetType="{x:Type ContentPresenter}">
                <Setter x:Uid="Setter_1" Property="ContentTemplate" Value="{DynamicResource ExpandedActivityViewTemplate}" />
                <Style.Triggers>
                    <DataTrigger x:Uid="DataTrigger_1" Binding="{Binding Path=ShowExpanded}" Value="false">
                        <Setter x:Uid="Setter_2" Property="ContentTemplate" Value="{DynamicResource CollapsedActivityViewTemplate}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>
        </ResourceDictionary>
    </sap:ActivityDesigner.Resources>
    <ContentPresenter x:Uid="ContentPresenter_1" Style="{DynamicResource FileOpenStyle}" Content="{Binding}" />
</sap:ActivityDesigner>
